package cn.melonlib.specials.auth.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper=true)
@Entity(name="TenantUser")
@Table(name = "adm_tenant_user",schema = "ustudy_admin")
@ModelComment("学校用户")
public class TenantUser extends TenantRecordEntity {
	
	@ModelComment(value = "部门ID")
	private String deptId;
	
	@ModelComment(value = "部门名称")
	private String deptName;
	
	@ModelComment(value = "用户代码/登录账号")
	private String code;
	
	@ModelComment(value = "姓名")
	private String name;
	
	@ModelComment(value = "联系电话")
	private String mobile;
	
	@ModelComment(value = "联系邮箱")
	private String email;
	
	//是否有教学管理权限
	@ModelComment(value = "教师权限")
	private Boolean teacher = false;
	
	@ModelComment(value = "管理员权限")
	private Boolean admin = false;
	
	@ModelComment(value = "网盘空间")
	private Long cloudSize;
	
	@ModelComment(value = "上线/下线")
	private Boolean online = true;
	
	@Column
	@Lob
	@Basic(fetch = FetchType.LAZY)
	private String memo;
	
}
